package a.j.b;

import a.c.e;
import a.j.g;
import a.j.*;

import java.util.Iterator;
import java.util.WeakHashMap;

public class d
  extends a
  implements ic
{
  public static final byte g = 1;
  public static final byte h = 2;
  private f.p_ i;
  private f.n_ j;
  private byte k = 1;
  private boolean l = true;
  private boolean m;
  private boolean n = true;
  private final WeakHashMap o = new WeakHashMap();
  public static int p;
  
  public boolean a(double paramDouble1, double paramDouble2)
  {
    int i1 = f.Wb;
    this.i = null;
    this.j = null;
    if (i1 == 0) {
      if (this.e != null)
      {
        if (i1 != 0) {
          break label251;
        }
        if (this.f != null)
        {
          sc localsc = new sc(this.e, paramDouble1, paramDouble2, true);
          e locale = a(localsc);
          if (i1 != 0) {
            break label254;
          }
          if (locale != null)
          {
            g localg = this.e.a();
            if (i1 != 0) {
              break label254;
            }
            if ((localg != null) && (a(localg, locale) == this.f))
            {
              f.p_ localp_ = this.f.eb().a(paramDouble1, paramDouble2);
              if (localp_ != null)
              {
                if (i1 != 0) {
                  break label152;
                }
                if (a(localp_, paramDouble1, paramDouble2))
                {
                  this.i = localp_;
                  return true;
                }
              }
              label152:
              f.n_ localn_ = this.f.eb().b(paramDouble1, paramDouble2);
              if (localn_ != null) {
                if (i1 == 0)
                {
                  if (a(localn_, paramDouble1, paramDouble2)) {
                    this.j = localn_;
                  }
                }
                else {
                  return true;
                }
              }
              if ((localp_ == null) && (localn_ == null))
              {
                if (i1 == 0) {
                  if (a(this.f.eb()))
                  {
                    if (i1 == 0) {}
                    return !this.f.H();
                  }
                }
                return i();
              }
            }
          }
        }
      }
    }
    label251:
    g();
    label254:
    return false;
  }
  
  private static boolean a(f.r_ paramr_)
  {
    int i1 = f.Wb;
    if ((i1 != 0) || (paramr_.c().isEmpty())) {
      if (i1 != 0) {}
    }
    return paramr_.b().isEmpty();
  }
  
  protected boolean a(f.n_ paramn_, double paramDouble1, double paramDouble2)
  {
    return a(this.f, paramn_, paramDouble1, paramDouble2, k());
  }
  
  protected boolean a(f.p_ paramp_, double paramDouble1, double paramDouble2)
  {
    return a(this.f, paramp_, paramDouble1, paramDouble2, k());
  }
  
  protected boolean h(ng paramng)
  {
    if (f.Wb == 0) {}
    return (paramng.e() & 0x40) != 0;
  }
  
  public void onGraph2DSelectionEvent(mg parammg)
  {
    int i1 = f.Wb;
    Object localObject = parammg.d();
    if ((i1 != 0) || ((parammg.a()) && (l())))
    {
      ld localld = a(parammg.e(), (e)localObject);
      if ((i1 != 0) || (((localld instanceof f)) && (!localld.H()))) {
        a((f)localld);
      }
    }
  }
  
  public byte h()
  {
    return this.k;
  }
  
  public void a(byte paramByte)
  {
    if (f.Wb == 0) {}
    switch (paramByte)
    {
    case 1: 
    case 2: 
      this.k = paramByte;
      if (!f.Vb) {
        break;
      }
    default: 
      throw new IllegalArgumentException();
    }
  }
  
  public boolean i()
  {
    return this.l;
  }
  
  public void b(boolean paramBoolean)
  {
    this.l = paramBoolean;
  }
  
  public boolean j()
  {
    return this.m;
  }
  
  public void c(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }
  
  public boolean k()
  {
    return this.n;
  }
  
  public void d(boolean paramBoolean)
  {
    this.n = paramBoolean;
  }
  
  private void a(f paramf)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    Iterator localIterator = paramf.eb().c().iterator();
    Object localObject;
    do
    {
      do
      {
        if (!localIterator.hasNext()) {
          break;
        }
        localObject = (f.n_)localIterator.next();
        a((f.n_)localObject, false);
        if (i1 != 0) {
          break label91;
        }
        if (bool) {
          break label85;
        }
      } while (!bool);
    } while (i1 != 0);
    localIterator = paramf.eb().b().iterator();
    label85:
    label91:
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      localObject = (f.p_)localIterator.next();
      a((f.p_)localObject, false);
    } while (!bool);
  }
  
  public boolean a(ng paramng)
  {
    return i(paramng);
  }
  
  private boolean i(ng paramng)
  {
    int i1 = f.Wb;
    if ((i1 != 0) || (f(paramng))) {
      if (i1 != 0) {}
    }
    return a(paramng.a(), paramng.b());
  }
  
  public void b(ng paramng)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    if (i1 == 0) {
      if (i(paramng))
      {
        if (i1 != 0) {
          break label189;
        }
        if (this.e != null)
        {
          g localg = this.e.a();
          if ((i1 != 0) || (this.f != null))
          {
            if (i1 == 0) {
              if (l())
              {
                if (i1 != 0) {
                  break label98;
                }
                if (!this.o.containsKey(localg))
                {
                  localg.a(this);
                  this.o.put(localg, null);
                }
              }
            }
            label98:
            if (i1 == 0) {
              if (this.i != null)
              {
                if (i1 != 0) {
                  break label133;
                }
                a(localg, this.i, h(paramng));
                if (!bool) {
                  break label184;
                }
              }
            }
            label133:
            if (i1 == 0) {
              if (this.j != null)
              {
                if (i1 != 0) {
                  break label170;
                }
                a(localg, this.j, h(paramng));
                if (!bool) {
                  break label184;
                }
              }
            }
            label170:
            a(localg, this.f.eb(), h(paramng));
          }
          label184:
          localg.gb();
        }
      }
    }
    label189:
    d();
  }
  
  protected void a(g paramg, f.n_ paramn_, boolean paramBoolean)
  {
    a(paramg, new b_(paramn_), paramBoolean);
  }
  
  protected void a(g paramg, f.p_ paramp_, boolean paramBoolean)
  {
    a(paramg, new a_(paramp_), paramBoolean);
  }
  
  private void a(g paramg, c_ paramc_, boolean paramBoolean)
  {
    int i1 = f.Wb;
    f localf = paramc_.b();
    if (i1 == 0)
    {
      if (paramBoolean)
      {
        if ((i1 != 0) || (!j()))
        {
          if (i1 != 0) {
            break label110;
          }
          if (!paramc_.a(localf.eb())) {}
        }
        else
        {
          if (i1 == 0) {}
          paramc_.a(!paramc_.a());
          if (i1 != 0) {
            break label110;
          }
          if (!f.Vb) {}
        }
      }
      else
      {
        a(localf);
        paramg.V();
      }
    }
    else {
      paramc_.a(true);
    }
    label110:
    if ((i1 != 0) || ((l()) && (!localf.H()))) {
      a(localf, true);
    }
  }
  
  private boolean l()
  {
    if (f.Wb == 0) {}
    return 2 == h();
  }
  
  protected void a(g paramg, f.r_ paramr_, boolean paramBoolean)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    if (i1 == 0) {
      if (a(paramr_)) {
        if (i1 == 0) {
          if (paramBoolean)
          {
            if (i1 == 0)
            {
              if (!a(paramg)) {
                return;
              }
              a(paramr_.a(), true);
            }
            if (i1 == 0) {
              if (!bool) {
                return;
              }
            }
          }
          else
          {
            paramg.V();
            a(paramr_.a(), true);
          }
        }
      }
    }
    if ((i1 != 0) || ((bool) && ((i1 != 0) || (i())))) {
      a(paramr_.a());
    }
  }
  
  private boolean a(g paramg)
  {
    int i1 = f.Wb;
    if (i1 == 0) {
      if (!paramg.P())
      {
        if (i1 != 0) {
          break label48;
        }
        if (!paramg.R().e()) {
          if (i1 != 0) {
            break label48;
          }
        }
      }
    }
    label48:
    return paramg.U().e();
  }
  
  protected void a(f paramf, boolean paramBoolean)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    if (paramBoolean)
    {
      e locale = paramf.n();
      if (i1 == 0) {
        if (locale == null)
        {
          paramf.e(true);
          if (i1 != 0) {
            break label56;
          }
          if (!bool) {
            return;
          }
        }
      }
      ke.a((g)locale.g(), locale);
      label56:
      if (!bool) {}
    }
    else
    {
      paramf.e(false);
    }
  }
  
  protected void a(f.n_ paramn_, boolean paramBoolean)
  {
    paramn_.a(paramBoolean);
  }
  
  protected void a(f.p_ paramp_, boolean paramBoolean)
  {
    paramp_.a(paramBoolean);
  }
  
  void g()
  {
    super.g();
    this.i = null;
    this.j = null;
  }
  
  private final class a_
    implements d.c_
  {
    private final f.p_ a;
    
    a_(f.p_ paramp_)
    {
      this.a = paramp_;
    }
    
    public boolean a()
    {
      return this.a.e();
    }
    
    public void a(boolean paramBoolean)
    {
      d.this.a(this.a, paramBoolean);
    }
    
    public boolean a(f.r_ paramr_)
    {
      return paramr_.c().isEmpty();
    }
    
    public f b()
    {
      int i = f.Wb;
      boolean bool = f.Vb;
      f.q_ localq_ = this.a.a();
      do
      {
        do
        {
          if (!(localq_ instanceof f.p_)) {
            break;
          }
          localq_ = ((f.p_)localq_).a();
          if ((i == 0) && (bool)) {
            break label72;
          }
        } while (!bool);
        if (i != 0) {
          break;
        }
      } while (i != 0);
      if ((localq_ instanceof f.r_)) {
        return ((f.r_)localq_).a();
      }
      label72:
      return null;
    }
  }
  
  private final class b_
    implements d.c_
  {
    private final f.n_ a;
    
    b_(f.n_ paramn_)
    {
      this.a = paramn_;
    }
    
    public boolean a()
    {
      return this.a.e();
    }
    
    public void a(boolean paramBoolean)
    {
      d.this.a(this.a, paramBoolean);
    }
    
    public boolean a(f.r_ paramr_)
    {
      return paramr_.b().isEmpty();
    }
    
    public f b()
    {
      int i = f.Wb;
      boolean bool = f.Vb;
      f.o_ localo_ = this.a.a();
      do
      {
        do
        {
          if (!(localo_ instanceof f.n_)) {
            break;
          }
          localo_ = ((f.n_)localo_).a();
          if ((i == 0) && (bool)) {
            break label72;
          }
        } while (!bool);
        if (i != 0) {
          break;
        }
      } while (i != 0);
      if ((localo_ instanceof f.r_)) {
        return ((f.r_)localo_).a();
      }
      label72:
      return null;
    }
  }
  
  private static abstract interface c_
  {
    public abstract boolean a();
    
    public abstract void a(boolean paramBoolean);
    
    public abstract boolean a(f.r_ paramr_);
    
    public abstract f b();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.d

 * JD-Core Version:    0.7.0.1

 */